//
//  WelcomeSecondViewController.swift
//  ShouChong
//
//  Created by 陈友文 on 2024/6/13.
//

import UIKit
import SwiftUI

class WelcomeSecondViewController: BaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        setupUI()
    }
    
    
    private func setupUI() {
        let secondView = WelcomeSecondView {
            let thirdVC = WelcomeThirdViewController()
            self.navigationController?.pushViewController(thirdVC, animated: true)
        }
        let hostVC = UIHostingController(rootView: secondView)
        hostVC.view.frame = kScreenBounds
        hostVC.view.backgroundColor = UIColor(named: "color_bg")
        self.view.addSubview(hostVC.view)
    }
    

 

}
